<template>
<div>
        <div>&lt; 房型介绍</div>
        <div><img style="width:88%" :src="'/public/login'+arr.img" alt=""></div>
       
</div>
</template>
<script setup >
import {ref,reactive, onMounted } from 'vue'
import { useRoute,useRouter } from 'vue-router';
import request from '../../utils/request';
const id = useRoute().query.id
const router = useRouter()
let arr = ref({})
const getarr =async ()=>{
    let {data} = await request.get('roomtypes?id='+id)
    arr.value = data.data[0]
  
  
}
onMounted(()=>{
    getarr()
})
</script>
<style scoped >

</style>
 